package com.example.parsing.unit;

public class StringReplace {
	
	// 替换plc实验数据的设备型号
	public static String replace(String s) {
		s = s.replace("/", "-");
		s = s.replace("-", "_");
		return s;
	}
	
	//替换txt文本中json文本的型号
	public static String replace2(String deviceName) {
		deviceName = deviceName.replace("-", "_");
		return deviceName;
	}
}
